
import request from '@/utils/request'

export function queryList(data) {
    return request({
        url: '/hndqyss/monitor_task/queryList',
        method: 'post',
        data
    })
}
export function addMonitorTask(data) {
    return request({
        url: '/hndqyss/monitor_task/add',
        method: 'post',
        data
    })
}
export function addTask(data) {
    return request({
        url: '/hndqyss/monitor_task/add_task',
        method: 'post',
        data
    })
}
export function insert_task(data) {
    return request({
        url: '/hndqyss/monitor_task/insert_task',
        method: 'post',
        data
    })
}
export function download_report(data) {
    return request({
        url: '/hndqyss/monitor_task/download_report?batchId='+data.batchId,
        method: 'get',
        responseType: "blob",
        data
    })
}


export function deleteMonitorTask(data) {
    return request({
        url: '/hndqyss/monitor_task/delete?ids='+data,
        method: 'post',
    })
}



export function queryTaskExtInfo(data) {
    return request({
        url: '/hndqyss/monitor_task/queryTaskExtInfo',
        method: 'post',
        data
    })
}
export function updateTaskExtInfo(data) {
    return request({
        url: '/hndqyss/monitor_task/update',
        method: 'post',
        data
    })
}
export function queryExeRecordByBatchId(data) {
    return request({
        url: '/hndqyss/monitor_task/queryExeRecordByBatchId',
        method: 'post',
        data
    })
}
export function getQuotasDetailResult(data) {
    return request({
        url: '/hndqyss/monitor_task/getQuotasDetailResult?batchId='+data.batchId,
        method: 'post',
        data
    })
}
export function shutdown(data) {
    return request({
        url: '/hndqyss/monitor_task/shutdown?task_id='+data.id,
        method: 'post',
        // data
    })
}
export function start(data) {
    return request({
        url: '/hndqyss/monitor_task/start?task_id='+data.id,
        method: 'post',
        // data
    })
}
export function scanTasktest(data) {
    return request({
        url: '/hndqyss/monitor_task/test',
        method: 'post',
        data
    })
}
export function sxjkQueryList(data) {
    return request({
        url: '/hndqyss/sxjk/queryList',
        method: 'post',
        data
    })
}
export function querySxlx(data) {
    return request({
        url: '/hndqyss/sxjk/querySxlx',
        method: 'post',
        data
    })
}
export function upload(data) {
    return request({
        url: '/hndqyss/sxjk/upload',
        method: 'post',
        data
    })
}
